<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.gdit.zax.entitys.StartPic"%>
<%@page import="com.gdit.zax.dao.StartPicDao"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="com.gdit.zax.utils.UrlDecoder"%>
<%@page import="java.sql.Connection"%>
<%@page import="com.gdit.zax.utils.DBUtil"%>
<%@page import="com.gdit.zax.utils.Repost"%>
<%@page import="com.gdit.zax.dao.SchoolDao"%>
<%@page import="com.gdit.zax.factory.DAOFactory"%>
<%
	Connection conn = DBUtil.getConnection();
	if (conn==null) {
		Repost.dberror(request,response);
		return;
	}
	
	StartPicDao sdao =  DAOFactory.init(conn,request,response).getStartPicDao();
	StartPic data = sdao.getStartPic();
	request.setAttribute("data",data);
 %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>修改启动图片</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>

	<body>
	<!-- 
	1:${requestScope.accesstoken}
    2:${sessionScope.accesstoken}
    3:${session.accesstoken}
    4:${param.accesstoken}
    				<input type="hidden" name="accesstoken" value="${param.accesstoken}"/>  
	 -->

		<center>
			<h1>修改启动图片
				</h1>
				<form action="servlet_addstartpic" method="post" enctype="multipart/form-data"><p><p><p><p>类型:
			<select name="type">
				<option value="0" selected="selected">默认图片</option>
				<option value="1" >广告图片</option>
				<option value="2" >节目图片</option>
			</select> 
							</p> 
							<p>&nbsp; 
					图片： 
					<input type="file" name="pic" size="10" accept=".jpg,.bmp,.gif,.png">
				</p>

				<input name="btn_submit" type="submit" value="添加"/>
				<input type="reset" value="重置" />
					</p>
					</p>
				
				当前：
				 <center>
                        <img width="300" height="600" src="${requestScope.data.path}"></center>
				
			</form>
		</center>
	</body>
</html>
